﻿
using System;
using SqlSugar;
using Dora.Orm.Core.Domain.Entities;

namespace Dora.Services.AdminUser.Entities
{
    /// <summary>
    /// 环信用户联系表实体对象
    /// </summary>
    [SugarTable("hx_user_contact")]
    public class HxUserContactEntity : Entity<Guid>
    {
        #region model


        /// <summary>
        /// 自身系统Id
        /// </summary>
        public int SelfSystemId { get; set; }

        /// <summary>
        /// 自身用户Id
        /// </summary>
        public Guid SelfUserId { get; set; }

        /// <summary>
        /// 自身环信用户名
        /// </summary>
        public string SelfHxUserName { get; set; }

        /// <summary>
        /// 自身昵称
        /// </summary>
        public string SelfNickName { get; set; }

        /// <summary>
        /// 自身机构Id
        /// </summary>
        public int SelfOrgId { get; set; }

        /// <summary>
        /// 自身机构名称
        /// </summary>
        public string SelfOrgName { get; set; }

        /// <summary>
        /// 自身头像
        /// </summary>
        public string SelfAvatar { get; set; }

        /// <summary>
        /// 联系人系统Id
        /// </summary>
        public int ContactSystemId { get; set; }

        /// <summary>
        /// 联系人用户Id
        /// </summary>
        public Guid ContactUserId { get; set; }

        /// <summary>
        /// 联系人环信用户名
        /// </summary>
        public string ContactHxUserName { get; set; }

        /// <summary>
        /// 联系人昵称
        /// </summary>
        public string ContactNickName { get; set; }

        /// <summary>
        /// 联系人机构Id
        /// </summary>
        public int ContactOrgId { get; set; }

        /// <summary>
        /// 联系人机构名称
        /// </summary>
        public string ContactOrgName { get; set; }

        /// <summary>
        /// 联系人头像
        /// </summary>
        public string ContactAvatar { get; set; }

        /// <summary>
        /// 最后联系人用户Id
        /// </summary>
        public Guid LastContactUserId { get; set; }

        /// <summary>
        /// 最后联系时间
        /// </summary>
        public DateTime LastContactTime { get; set; }

        /// <summary>
        /// 最后联系消息
        /// </summary>
        public string LastContactMsg { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public short IsDeleted { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreatedUserId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreatedUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}
